---
title: Deploy your Astro Site to AWS with SST
description: How to deploy your Astro site to AWS with SST
type: deploy
i18nReady: true
---

You can deploy an Astro site using [SST](https://sst.dev), an open-source framework for deploying fully serverless applications to AWS with SSG and SSR support.

You can also use any additional SST constructs like Cron Jobs, Buckets, Queues, etc while maintaining type-safety.

## Quickstart

1. Create an astro project.

2. Run `npx create-sst`.

3. It should detect that you are using Astro and ask you to confirm.

4. Once you're ready for deployment you can run `npx sst deploy --stage=production`.

You can also watch [a video walkthrough of this process](https://www.youtube.com/watch?v=AFP3ZHxO7Gg) that will guide you through the steps.

### SST constructs
To use any [additional SST constructs](https://docs.sst.dev/), add them to `sst.config.ts`. 

```ts {2} {4} title="sst.config.ts"
app.stack(function Site(ctx) {
  const bucket = new Bucket(ctx.stack, "public");
  const site = new AstroSite(ctx.stack, "site", {
    bind: [bucket],
  });

  ctx.stack.addOutputs({
    url: site.url,
  });
});
```

And then access them in your `.astro` file.

```astro
---
import { Bucket } from "sst/node/bucket"
console.log(Bucket.public.bucketName)
---
```

Consult the [SST docs on Resource Binding](https://docs.sst.dev/resource-binding) to learn more.

If you have any questions, you can [ask in the SST Discord](https://discord.gg/sst).
